home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
kcl
/
akcl
/
akcl1615.lha
/
xbin
/
distribute
< prev
next >
Wrap
Text File
|
1991-10-20
|
960b
|
41 lines
#!/bin/sh
KCL=`pwd`
MAINDIR=/public/kcl
FTPDIR=/usr2/ftp/pub
# done moving aside the .c files we don't want to ship.
NAME="akcl-`cat ${KCL}/majvers`-`cat ${KCL}/minvers`.tar.Z"
if [ $# -eq 1 ] ; then FILE=$1
else
FILE="${FTPDIR}/${NAME}"
cp ${KCL}/c/ChangeLog ${FTPDIR}/akcl-ChangeLog
cp ${KCL}/README ${FTPDIR}/AKCL.README
fi
cd ${KCL}
tar cvf - `xbin/new-files ${MAINDIR}` | compress -c > ${FILE}
if [ $# -eq 0 ] ; then
echo wfs > tmpx
echo binary >> tmpx
echo send ${FILE} /disk1/ftp/pub/akcl/${NAME} >> tmpx
echo send README /disk1/ftp/pub/akcl/AKCL.README >> tmpx
echo send c/ChangeLog /disk1/ftp/pub/akcl/ChangeLog >> tmpx
cat tmpx | ftp cli.com
rm -f tmpx
echo binary >tmpx
echo cd kcl/akcl >> tmpx
echo prompt >> tmpx
echo 'mdel akcl-1*.Z' >> tmpx
echo send ${FILE} ${NAME} >> tmpx
echo send README AKCL.README >> tmpx
echo send c/ChangeLog ChangeLog >> tmpx
echo quit >> tmpx
cat tmpx | ftp 133.11.11.11
fi
rm -f tmpx